package cn.edu.abtu.client;

import cn.edu.abtu.vo.ResponseData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@Component
@FeignClient("service-vod")
public interface VodClient {

    @DeleteMapping("/eduvod/video/removeVideo/{videoId}")
    public ResponseData removeVideo(@PathVariable("videoId") String videoId);

    @DeleteMapping("/eduvod/video/delete-batch")
    public ResponseData deleteBatch(@RequestParam("videoList") List<String> videoList);
}
